-- Given a HierarchyKey returns the full path to the document starting with the root name. The path is in -- slash notation. Like $/Common/Business Objects/DocumentType CREATEPROCEDURE[dbo].[asi_DocumentPathByHierarchyKey] @hierarchyKeyuniqueidentifier, @publishedOnlybit=0 AS BEGIN DECLARE @pathnvarchar(4000)